package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserMarriage;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 领导干部婚姻变化情况报告表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserMarriage对象", description="领导干部婚姻变化情况报告表")
public class UserMarriageVO extends BaseVO<UserMarriage> {
    private static final long serialVersionUID = 1L;


    public UserMarriageVO(UserMarriage entity){
        this.userMarriageId = entity.getUserMarriageId();
        this.userId = entity.getUserId();
        this.mateName = entity.getMateName();
        this.mateUnit = entity.getMateUnit();
        this.mateDuty = entity.getMateDuty();
        this.matePoliticalStatus = entity.getMatePoliticalStatus();
        this.marryStart = entity.getMarryStart();
        this.marryEnd = entity.getMarryEnd();
        this.otherRemark = entity.getOtherRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserMarriage convertToEntity(){
        return new UserMarriage(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userMarriageId;

    @ApiModelProperty(value = "user主表ID")
    private String userId;

    @ApiModelProperty(value = "配偶名称")
    private String mateName;

    @ApiModelProperty(value = "配偶单位")
    private String mateUnit;

    @ApiModelProperty(value = "配偶职务")
    private String mateDuty;

    @ApiModelProperty(value = "配偶政治面貌，字典值")
    private String matePoliticalStatus;

    @ApiModelProperty(value = "婚姻登记时间")
    private String marryStart;

    @ApiModelProperty(value = "婚姻结束时间")
    private String marryEnd;

    @ApiModelProperty(value = "其他需要说明情况")
    private String otherRemark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "配偶政治面貌名称")
    private String matePoliticalName;
    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
